
<?php if (validation_errors()) : ?>
<div class="notification error">
	<?php echo validation_errors(); ?>
</div>
<?php endif; ?>
<?php // Change the css classes to suit your needs    
if( isset($league) ) {
	$league = (array)$league;
}
$id = isset($league['league_id']) ? "/".$league['league_id'] : '';
?>
<?php echo form_open($this->uri->uri_string(), 'class="constrained ajax-form"'); ?>
<?php if(isset($league['league_id'])): ?><input id="league_id" type="hidden" name="league_id" value="<?php echo $league['league_id'];?>"  /><?php endif;?>
<div>
        <?php echo form_label('Name', 'name'); ?>
        <input id="name" type="text" name="name" maxlength="45" value="<?php echo set_value('name', isset($league['name']) ? $league['name'] : ''); ?>"  />
</div>



	<div class="text-right">
		<br/>
		<input type="submit" name="submit" value="Create league" /> or <?php echo anchor(SITE_AREA .'/reports/league', lang('league_cancel')); ?>
	</div>
	<?php echo form_close(); ?>
